﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Manage_Service_getStuScore : ManagePageBase
{
    protected int id = 0;
    protected List<Exam.Core.Model.StudentExamList> list = new List<Exam.Core.Model.StudentExamList>();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["id"] == null)
        {
            Response.End();
        }
        if (!int.TryParse(Request.QueryString["id"], out id))
        {
            Response.End();
        }
        else
        {
            if (!IsPostBack)
            {
                Bind();
            }
        }
    }

    private void Bind()
    {
        //String SQL = "SELECT * FROM Paper WHERE PaperID IN (SELECT PaperID FROM StudentPaper WHERE StudentID=" + id + ") ORDER BY PaperID DESC";
        list = new Exam.Core.DAL.StudentExamList().getStudentPaperByStuId(id);

    }
}